package cn.com.jd.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.com.jd.dao.UserInfoDtoMapper;
import cn.com.jd.dto.StatusDto;
import cn.com.jd.model.UserInfoDto;
import cn.com.jd.service.UserInfoManageService;

@Service("UserInfoManageService")
public class UserInfoManageServiceImpl implements UserInfoManageService {
	@Resource
	private UserInfoDtoMapper userInfoDtoMapper;
	
	@Override
	public StatusDto updateUserInfo(UserInfoDto userInfoDto){
		StatusDto sts = new StatusDto();
		userInfoDtoMapper.updateByPrimaryKeySelective(userInfoDto);
		return sts;
	}
	
	@Override
	public UserInfoDto getUserInfo(String userId){
		return userInfoDtoMapper.selectByPrimaryKey(userId);
	}
}
